from dao.neo4jdao import get_related_nodes

def fetch_person(name: str):
    person_data = get_related_nodes(name)
    if not person_data:
        return {"message": "没查询到数据"}
    return person_data